package Demo03;

public enum Sex {
    GIRL("女孩"), BOY("男孩");
    private String name;

    private Sex() {
    }

    private Sex(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }


    public static void main(String[] args) {
        System.out.println(Sex.GIRL.getName());
        System.out.println(Sex.BOY.getName());

    }
}
